package com.wanglei.rdd.transform

import org.apache.spark.{SparkConf, SparkContext}

object Spark09_distinct {

  def main(args: Array[String]): Unit = {

    //
    val conf = new SparkConf().setMaster("local[2]").setAppName("map")
    val sc = new SparkContext(conf)


    val rdd = sc.makeRDD(List("hello", "scala", "hello", "spark"))
    rdd.distinct()
      .collect().foreach(println)

    //
    sc.stop()

  }

}
